import Taro, { Component } from '@tarojs/taro'
import { View, Image } from '@tarojs/components'
import './Determine.css'
import comfirm from '../../img/comfirm.png'
import app from '../../main';

export default class Determin extends Component {

    config = {
        navigationBarBackgroundColor: "#000000",
        navigationBarTextStyle: "white",
        navigationBarTitleText: ''
    }
    constructor(){
        super(...arguments)
    }

    componentWillMount(){
        setTimeout((res) =>{
            if(this.$router.params.id == 10){
                app.redirectTo('../chatsub/pages/Chat/Chat?type=' + 'photo')
            }else if(this.$router.params.id == 20){
                app.redirectTo('../quicklyConsultationModify/quicklyConsultationModify')
            }else{
                app.redirectTo('../quicklyConsultation/quicklyConsultation')
            }
            
        },2000)
    }

    render () {
        return (
            <View className='image-text'>
                <View>
                    <Image style='width: 50px;height: 50px;'src={comfirm}/>
                </View>
                <View className='text'>拍摄眼睛成功</View>
            </View>   
        )
    }
}